﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="EditEvent.aspx.cs" Inherits="TicketingCompany.EditEvent" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ContentPlaceHolderID="MainContent" runat="server">
    <asp:UpdatePanel ID="UpdatePanelEvent" runat="server" Visible="false">
        <ContentTemplate>
            Location:
            <asp:DropDownList ID="DropDownListLocations" runat="server" DataSourceID="EntityDataSourceLocations"
                DataTextField="Name" DataValueField="LocationID">
            </asp:DropDownList>
            <br />
            <asp:EntityDataSource ID="EntityDataSourceLocations" runat="server" ConnectionString="name=TicketingCompanyEntities"
                DefaultContainerName="TicketingCompanyEntities" EnableFlattening="False" EntitySetName="Locations"
                Select="it.[LocationID], it.[Name]">
            </asp:EntityDataSource>
            Category:
            <asp:DropDownList ID="DropDownListCategories" runat="server" DataSourceID="EntityDataSourceCategories"
                DataTextField="Name" DataValueField="CategoryID">
            </asp:DropDownList>
            <br />
            <asp:EntityDataSource ID="EntityDataSourceCategories" runat="server" ConnectionString="name=TicketingCompanyEntities"
                DefaultContainerName="TicketingCompanyEntities" EnableFlattening="False" EntitySetName="Categories"
                Select="it.[CategoryID], it.[Name]">
            </asp:EntityDataSource>
            Title:
            <asp:TextBox ID="TextBoxEventTitle" runat="server" />
            <asp:Label ID="LabelInvalidTitle" Text="The title should be between 1 and 150 characters."
                runat="server" ForeColor="Red" Visible="false" />
            <br />
            Price:
            <asp:TextBox ID="TextBoxPrice" runat="server" />
            <br />
            <asp:ScriptManager runat="server" />
            <telerik:RadDatePicker ID="RadDatePickerEvent" runat="server">
            </telerik:RadDatePicker>
            <br />
            <asp:Button ID="ButtonModifyEvent" Text="Modify" runat="server" 
                onclick="ButtonModifyEvent_Click" />
            <asp:Label ID="LabelErrorCreate" ViewStateMode="Disabled" Text="Please fill all the inputs"
                runat="server" ForeColor="Red" Visible="false" />
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
